package com.hhd.flow.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author tangzy
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("h_flow_process_definition_ref")
public class FlowProcessDefinitionRef implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "id", type = IdType.ID_WORKER_STR)
    private String id;

    /**
     * 流程模型id
     */
    @TableField("model_id")
    private String modelId;

    /**
     * 流程定义
     */
    @TableField("model")
    private String model;

    /**
     * 流程编码
     */
    @TableField("code")
    private String code;

    /**
     * 版本号
     */
    @TableField("version")
    private Integer version;

    /**
     * 创建日期
     */
    @TableField("create_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    /**
     * 更新日期
     */
    @TableField("update_time")
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    /**
     * pc视图id
     */
    @TableField("pc_view")
    private String pcView;
    /**
     * pc权限id
     */
    @TableField("pc_action")
    private String pcAction;
    /**
     * 移动端视图
     */
    @TableField("mobile_view")
    private String mobileView;
    /**
     * 移动端视图
     */
    @TableField("mobile_action")
    private String mobileAction;
}
